/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.live.model.param.manager;

import cn.hutool.core.bean.BeanUtil;
import com.medusa.gruul.common.core.param.QueryParam;
import com.medusa.gruul.live.api.entity.Live;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description:
 * @Author: zhaokw
 * @Date : 2020/04/01
 */
@Data
@ApiModel(value = "LiveParam对象", description = "直播列表查询参数")
@Accessors(chain = true)
public class LiveParam extends QueryParam {
    private Long id;

    @ApiModelProperty(value = "租户id")
    private String tenantId;

    @ApiModelProperty(value = "商铺id")
    private String shopId;

    @ApiModelProperty(value = "直播房间号")
    private String roomId;

    @ApiModelProperty(value = "直播名称")
    private String liveName;

    @ApiModelProperty(value = "开播时间")
    private String startTime;

    @ApiModelProperty(value = "停播时间")
    private String endTime;

    @ApiModelProperty(value = "主播信息")
    private String anchor;


    @ApiModelProperty(value = "背景图")
    private String coverImg;

    @ApiModelProperty(value = "主播头像图")
    private String anchorImg;

    @ApiModelProperty(value = "分享卡片图")
    private String shareImg;

    @ApiModelProperty(value = "观看量")
    private Long viewCount;

    @ApiModelProperty(value = "点赞量")
    private Long likeCount;

    @ApiModelProperty(value = "首页排序")
    private Long sort;

    @ApiModelProperty(value = "是否首页 0否 1是")
    private Integer firstFlag;


    public Live coverLive(){
        Live live = new Live();
        BeanUtil.copyProperties(this,live);
        return live;
    }
}
